#include<stdio.h>

void putname(const char** namelist);

const char* name[]=
{
	"Aaron",
	"jim",
	"charles",
	"sam",
	"ken",
	"end"
};
 
int main()
{
    putname(name);
	return 0;
} 
 

void putname(const char** namelist)
{
	if(*namelist=="end")
	    return;
	else
	{
		putname(namelist+1);
		printf("%s\n",*namelist);
	}
}
